﻿using Microsoft.AspNetCore.Http;
using System.Threading.Tasks;
using System.Threading;
namespace Zeus.AspnetCoret.Test
{
    public class TestMiddleware
    {
        private RequestDelegate _next;
        public TestMiddleware(RequestDelegate next)
        {
            _next = next;
        }

        public async Task Invoke(HttpContext context)
        {
            //System.Threading.ThreadPool.GetAvailableThreads(out int wokerTheads, out int completionPortThreads);

            //System.Console.WriteLine($"pool info :work[{wokerTheads}] completion[{completionPortThreads}]");
            await _next.Invoke(context);


        }

    }
}
